import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

import 'package:flutter_deer/res/colors.dart';

class CashierOrderItemHeader extends StatelessWidget {
  const CashierOrderItemHeader({
    super.key,
  });

  @override
  Widget build(BuildContext context) {
    const row = Row(
      children: [
        Expanded(flex: 6, child: Text('商品名称', style: TextStyle(fontSize: 16, color: Colours.white))),
        SizedBox(width: 90, child: Align(child: Text('分类', style: TextStyle(fontSize: 16, color: Colours.white)))),
        SizedBox(width: 110, child: Align(child: Text('数量', style: TextStyle(fontSize: 16, color: Colours.white)))),
        SizedBox(width: 110, child: Align(child: Text('单价/规格', style: TextStyle(fontSize: 16, color: Colours.white)))),
        SizedBox(width: 90, child: Align(child: Text('金额(元)', style: TextStyle(fontSize: 16, color: Colours.white)))),
        SizedBox(width: 40),
      ],
    );
    final container = Container(
      decoration: const BoxDecoration(
        // color: Colors.white,
        // color: Color(0xFFFF8547),
        color: Colours.dark_app_main,
        borderRadius: BorderRadius.only(topLeft: Radius.circular(3), topRight: Radius.circular(3)),
      ),
      padding: const EdgeInsets.only(left: 10.0, bottom: 8.0, top: 8, right: 1.0),
      child: row,
    );
    return container;
  }
}
